// source: http://www.cours.polymtl.ca/inf2705/nuanceurs/exempleIllumination/phong.glsl

uniform sampler2D colorMap;
uniform int utiliseTexture;

void main( void )
{

  if (utiliseTexture==0)
    gl_FragColor = gl_Color;
  else
  {
    gl_FragColor = texture2D(colorMap, gl_TexCoord[0].st);
  }

}
